<template>
  <div class="m-contain edit">
    <van-nav-bar title="编辑姓名"
                right-text="保存"
                 left-arrow
                 @click-left="onClickLeft" />
    <div class="m-main">
    <van-field center v-model="value"  placeholder="请输入您的姓名"  />
    </div>
  </div>
</template>
<script>

import Vue from 'vue';

import { NavBar ,Field } from 'vant';

Vue.use(Field);
Vue.use(NavBar);
export default {
  name: "userInfo",
  data() {
    return {
        value:''
    }
  },
  components: {

  },
  methods: {
    onClickLeft() {
      this.$router.push('/user')
    }
  }
}
</script>

<style>
  .van-image__img {
    margin-top: 10px;
  }
</style>

<style lang="less" scoped>
.edit{
  min-height:100vh;
  width:100%;
  background-color:#f6f6f6;
  .van-cell{
    height:63px;
  }
}
</style>